<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="cw" uri="/widget-tags"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv=Content-Type content="text/html; charset=UTF-8">
		<title>普通按钮</title>
		<!-- ExtJS library: all widgets -->
		<script type="text/javascript">
		function submit(){  
			alert("提交成功");
		}
		</script>
		<cw:base />
	</head>
	<body>
		<ul>
			<li>
				<b>普通按钮，按下后执行指定的方法</b>
			</li>
			<li>
				<b>普通按钮控件的text属性为显示文本，onclick属性为单击事件调用的方法，例如submit()</b>
			</li>
		</ul>
		<br/>
		<br/>
		<table>
			<tr>
				<td>
					<cw:button text="提交" onclick="submit()" ></cw:button>
				</td>
			</tr>
		</table>
	</body>
	<cw:theme></cw:theme>
</html>